﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class student_isTakeExam : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string test_question_id = Request["test_question_id"].ToString().Trim();
        string sql = "select test_score from  tb_score where student_id ='" + Session["student_id"] 
            + "' and  course_id in (select course_id from tb_test_info where test_question_id='" + test_question_id + "')";
        string score = SqlServer.ExecuteScalar(sql);
        Response.Write(score);
        Response.End();
    }
}